package com.situ.mall.manager.service;

import com.situ.mall.manager.entity.Admin;

public interface AdminService {
    /**
     * 管理员登录
     * @param admin
     * @return
     */
    Admin login(Admin admin) throws Exception;

    /**
     * 修改密码
     * @param id
     * @param oldPassword
     * @param newPassword
     * @param rePassword
     * @return
     */
    Admin modifyPwd(Integer id,String oldPassword,
                    String newPassword,String rePassword) throws Exception;

    /**
     * 修改信息
     * @param admin
     * @return
     */
    Admin edit(Admin admin) throws Exception;
}
